import { create } from 'zustand'

export interface List {
  id: string
  children?: List[]
}

export type IFlattenedItem = List & { ancestorIds: string[] }

interface listsStore {
  items: List[]
  setLists: (items: List[]) => void
}

export const useListsStore = create<ListsStore>((set) => ({
  items: [],
  setLists: (items) => set({ items }),
}))
